Automatic discovery of network node addresses

ABSTRACT

The present invention provides a system and method for automatic discovery of network addresses. Briefly described, in architecture, one embodiment of the apparatus, among others, comprises: an announcer logic; a listener logic; and a forwarder logic. The announcer logic is configured to transmit a node address and a forward counter associated with each known node in a list, if the forward counter is greater than zero, to all nodes in the list having a static type. The listener logic is configured to receive an announcement packet and to add to the list of known nodes at least one new node. The node address and the forward counter of the new node correspond to the announcement packet, and the new node has a discovered type. The forwarder logic is configured to transmit the node address and the forward counter associated with the new node, if the forward counter is greater than zero, to all known nodes in the list.

CROSS-REFERENCE TO RELATED PATENT APPLICATIONS

This present application claims priority to several co-pending U.S. provisional applications that were all filed on Jun. 24, 2002 of which is incorporated by reference in its entirety herein. The co-pending U.S. provisional applications are:

60/391,098 “Auto Topology Discover Method for Layer 3 Networks” 60/391,121 “Method for Automatic Discovery of Network Core Type” 60/391,053 “Method for Determination of Virtual Circuit Characteristics in Layer 3 Networks”

FIELD OF THE INVENTION

The present invention relates generally to computer network architecture, and more particularly, to discovery of addresses for nodes on a computer network.

DESCRIPTION OF THE RELATED ART

In order for two devices to communicate with each other over a computer network, two conditions must be met. One, a communication path must be provided which links the two nodes, a condition known as “reachability.” Two, the first device must know the network address of the second device, and vice-versa. The first condition is easily met as a result of the design of the network itself and the configuration of the network by the network administrator. The second condition can be met by a variety of mechanisms.

One way is for the network administrator to provide each device with its own list of network addresses of reachable nodes. This could be done through a configuration file, a command line interface, or a network management system such as SNMP. However, this mechanism is not feasible for networks which contain dozens or even hundreds of nodes.

Another way is for a device to advertise its own network address to other reachable nodes by transmitting on the network using a broadcast or multicast address. A broadcast address is a single well-known address which all network nodes are aware of and can listen on. A multicast address is one of a group of well-known addresses which all network nodes are aware of and can listen on. Therefore, a node listening on either the broadcast address or one of the multicast addresses can learn the address of the sender without knowing the sender's address ahead of time. However, for a large scale network with hundreds of nodes broadcasting, this mechanism places a heavy burden on the nodes which receive large numbers of broadcast packets.

In a variation on the first mechanism, the network administrator maintains only one list of network addresses for reachable nodes, on a particular “directory services” device. Other devices then contact the directory services device to discover the network addresses of other nodes.

Each of these solutions is appropriate for a different environment. The first solution is very simple to implement and works for a very small number of nodes. The second solution, implemented by protocols such as RIP (Routing Information Protocol) and OSPF (Open Shortest Path First), is used as a discovery mechanism between routers. The last solution, implemented by protocols such as LDAP (Lightweight Directory Access Protocol) and DNS (Domain Name Service), is used as a discovery mechanism for applications, such as Windows Explorer, to discover information about users, servers, printers, and other network devices.

In yet another environment, the network has a large enough number of nodes to make the first mechanism (each device maintaining its own list of reachable nodes) not feasible. In this environment, an increase in broadcast traffic is deemed to be undesirable. Finally, this environment supports the execution of a software application on various nodes, and within this software application, it is undesirable to provide “full mesh” connectivity such that each node communicates with each other node. Within this software, it is instead desirable to allow certain nodes to communicate with certain other nodes, in a manner which is controllable by the network administrator. A directory services solution is more complicated than necessary in this particular environment.

Therefore, there is a need for improved systems and methods which address these and other shortcomings of the prior art.

SUMMARY OF THE INVENTION

The present invention provides systems and methods for automatic discovery of network addresses. Briefly described, in architecture, one embodiment of the apparatus, among others, comprises: announcer logic; listener logic; and forwarder logic. The announcer logic is configured to transmit a node address and a forward counter associated with each known node in a list, if the forward counter is greater than zero, to all nodes in the list having a static type. The listener logic is configured to receive an announcement packet and to add to the list of known nodes at least one new node. The node address and the forward counter of the new node correspond to the announcement packet, and the new node has a discovered type. The forwarder logic is configured to transmit the node address and the forward counter associated with the new node, if the forward counter is greater than zero, to all known nodes in the list.

One embodiment of a method, among others, can be broadly summarized by the following steps: initializing a known node list; transmitting to all known nodes, a node address and a forward counter associated with each known node, if the forward counter is greater than zero; receiving from the network an announcement packet; adding to a list of discovered nodes at least one new discovered node, where the discovered node comprises a node address and a forward counter corresponding to the announcement packet; and

transmitting to all known nodes and all discovered nodes, the node address and the forward counter associated with each known node, if the forward counter is greater than zero.

Other systems, methods, features, and/or advantages of the present invention will be or become apparent to one with skill in the art upon examination of the following drawings and detailed description. It is intended that all such additional systems, methods, features, and/or advantages be included within this description, be within the scope of the present invention, and be protected by the accompanying claims.

DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a communications environment where an embodiment of the system and/or method of the present invention operates.

FIG. 2 is a block diagram of one embodiment of a node from FIG. 1 which utilizes an embodiment of a system and/or method for automatic discovery of network addresses.

FIGS. 3A-C are a sequence of diagrams showing how the list of known nodes in each node is updated by announcements and forwarding in one example network configuration.

FIG. 4 is a flowchart of an embodiment of method for automatic discovery of network addresses.

FIG. 5 is a flowchart of another embodiment of method for automatic discovery of network addresses.

FIGS. 6A-D are a sequence of diagrams showing how the list of known nodes in each node is updated by announcements and forwarding in another example network configuration.

FIGS. 7A-D are a sequence of diagrams showing how the list of known nodes in each node is updated by announcements and forwarding in yet another example network configuration.

FIG. 8 shows the structure of an announcement packet used in one embodiment of a system and method for automatic discovery of network nodes.

FIGS. 9A-B are a sequence of diagrams showing how the list of known nodes in each node is updated by announcements and forwarding in another embodiment of a system for automatic discovery of network addresses.

DETAILED DESCRIPTION

Systems and methods for automatic discovery of network node addresses are provided. As will be described in more below, some embodiments of the systems and methods rely on the initial provisioning of a relatively small number of node addresses by the network administrator, combined with ability of the nodes to propagate this initial set of node addresses throughout the network using unicast addressing. The discovery by one node of another node's address, either automatically or through provisioning, results in the creation of a “path” between the two nodes. By varying the initial provisioning of node addresses, the network administrator can create a network configuration comprising of paths between all nodes (a “full mesh”), between tiers of nodes, or any other combination. Thus, applications executing on these nodes communicate with other nodes only through paths which are controllable by the network administrator.

The patent application with Ser. No. 10/603,038, entitled “Automatic Discovery of Network Core Type” and filed on Jun. 24, 2003, is incorporated by reference in its entirety herein. In addition, the patent application with International Application No. PCT/US03/19998, entitled “Determination of Network Performance Characteristics” and filed on Jun. 24, 2003 (National Stage Entry Serial No. 10/515,222 filed on Nov. 19, 2004), is incorporated by reference in its entirety herein.

The systems and/or methods can be implemented in software, hardware, or a combination thereof. In some embodiments, the system and/or method is implemented in software that is stored in a memory and that is executed by a suitable microprocessor (uP) situated in a communications device. However, system and/or method, which comprises an ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.

In the context of this document, a “computer-readable medium” can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. The computer readable medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, device, or propagation medium. More specific examples (a nonexhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic) having one or more wires, a portable computer diskette (magnetic), a random access memory (RAM) (magnetic), a read-only memory (ROM) (magnetic), an erasable programmable read-only memory (EPROM or Flash memory) (magnetic), an optical fiber (optical), and a portable compact disc read-only memory (CDROM) (optical). Note that the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.

FIG. 1 is a block diagram of a communications environment in which an embodiment of the system and/or method for automatic discovery of network nodes operates. The computer network 100 comprises one or more computer systems, known as network nodes 101 a-d, in communication with each other through routed network 102.

Each node 101 a-d has a network address 103 a-d, and a link 104 a-d to routed network 102. The systems and methods for automatic discovery of network nodes are applicable for nodes 101 a-d of many different types, including but not limited to personal computers and workstations, computer peripherals such as printers and scanners, and network devices such as hubs, bridges, routers, and switches. Routed network 102 may be any network which provides layer 3 (network protocol layer) connectivity. Although the discussion herein makes reference to Internet Protocol (IP) as the network protocol, the systems and methods for automatic discovery of network nodes are not limited to IP, but is applicable to any network protocol that supports unicast network addresses. Many different types of links 104 can be used to connect each node 101 to routed network 102, including but not limited to analog telephone lines, DSL, Ethernet, and wireless. The systems and methods for automatic discovery of network nodes are not dependent on any particular type of link 104.

A node 101 a is “reachable” by another node 101 b if the combination of links 104 a,b and routed network 102 provides a communication path between the two nodes. However, one node 101 a can communicate with another reachable node 101 b only if node 101 a knows the network address 103 b of the reachable node 101 b. If node 101 a does know the network address 103 b of the reachable node 101 b, then a “path” exists between node 101 a and node 101 b.

Paths may be unidirectional or bidirectional. If node 101 a knows the network address 103 b of node 101 b but node 101 b does not know the network address 103 a of node 101 a, then there is one unidirectional path from node 101 a to node 101 b. However, if node 101 a knows the network address 103 b of node 101 b, and node 101 b also knows the network address 103 b of node 101 b, then there is also a second unidirectional path, from node 101 b to node 101 a. These two unidirectional paths, taken together, may also be referred to as a single bidirectional path between node 101 a and node 101 b.

In FIG. 1, one unidirectional path 105 and one bidirectional path 106 are shown. Unidirectional path 105 implies that node 101 a can communicate with node bib. But because there is no unidirectional path from node 101 b to node 101 a, this also implies that node 101 b cannot communicate with node 101 a. In contrast, bidirectional path 106 implies that node 101 a can communicate with node 101 d and vice-versa.

Various mechanisms exist which allow one node to discover the network address of another node. A network administrator may provide node 101 a with the network address of other reachable network nodes, for example through a configuration file, a command line interface, or a network management system such as SNMP. However, this mechanism is not feasible for today's networks which contain dozens or even hundreds of nodes.

A node may also advertise its own network address to other reachable nodes by transmitting on routed network 102 using a broadcast or multicast address. A broadcast address is a single well-known address which all network nodes are aware of and can listen on. A multicast address is one of a group of well-known addresses which all network nodes are aware of and can listen on. Therefore, a node listening on either the broadcast address or one of the multicast addresses can learn the address of the sender without knowing the sender's address ahead of time. However, for a large scale network with hundreds of nodes broadcasting, this mechanism places a heavy burden on the nodes which receive large numbers of broadcast packets.

FIG. 2 is a block diagram of one embodiment of a node 101 from FIG. 1 which utilizes the systems and/or methods for automatic discovery of network addresses. Node 101 contains a number of components that are well known in the art of data communications, including a processor 201, network interface 202, and memory 203. These components are coupled via bus 204. Omitted from FIG. 2 for simplicity are a number of conventional components that are not necessary to explain the operation of the system and/or method for automatic discovery of network addresses and known to those skilled in the art.

Network interface 202 provides communication with routed network 102 through link 104. Contained within memory 203 is address discovery logic 205. Address discovery logic 205 is configured to enable and drive processor 201 to allow the discovery of network addresses of nodes 101 on routed network 102. Memory 203 also contains a list of known nodes 206 containing the network address 103 of each node 101 in network 100 which this particular node 101 knows about.

In some embodiments, each entry in the list 206 of known nodes contains a type field 207, a network address field 208, and a forward count field 209. In this example, there are only four entries, but any number of entries could be supported. Type field 207 is “discovered” if the entry was added through automatic discovery (discussed later). Type field 207 is “static” if the entry was added through add/delete mechanism 210, which can take the form of, for example, a configuration file, a command line interface or a network management system.

The forward count field 209 controls how the network address field 208 of the node entry is forwarded to other nodes. If the forward count field 209 is zero, then the address is not forwarded to other nodes. If the forward count field 209 is non-zero, then the address is forwarded to other nodes for the number of hops in the forward count field 209. Use of the forward count field 209 is explained in detail later.

The list of known nodes 206 is accessed by announcer logic 211, listener logic 212 and forwarder logic 213. Announcer logic 211 makes announcements to other nodes 101 a-d about the network address 103 of those nodes it knows about, that is, the nodes in the list of known nodes 206. More specifically, announcer logic 211 makes announcements to listener logic 212 in other nodes 101. That is, listener logic 212 is listening for announcements from other announcers 211, where the announcements contain network addresses 103. On receipt of an announcement, listener logic 212 adds the network address 103 contained in the announcement to its own list of known nodes 206. Forwarder logic 213 may forward the announcement (received from another node 101) to all the nodes in its own list of known nodes 206, depending on the contents of the forward count field 209.

In other embodiments, two lists are used rather than one. One list contains only Discovered nodes added through automatic discovery. The other list contains only Static nodes added through add/delete mechanism 210. While the following descriptions will refer only to a single-list embodiment, one skilled in the art will recognize how the single list of known nodes 206 containing both Static and Discovered nodes of the first described embodiment could be adapted to work with another embodiment using two separate Static and Discovered lists.

The workings of the systems and methods for automatic discovery of network addresses are explained by FIGS. 3A-C, which are a sequence of diagrams showing how the list of known nodes 206 in each node 101 a-d is updated by announcements and forwarding. In explaining FIGS. 3A-C, reference will also be made to FIGS. 4 and 5, which are flowcharts of an embodiment of a method for automatic discovery of network addresses.

In FIG. 3A, a network with configuration 100 a has four nodes 101 a-d connected to routed network 102. For simplicity, links 104 a-d connecting the nodes to routed network 102 are not shown. Each node 101 is reachable by all of the other nodes through routed network 102. In this example, nodes 101 a-d have network addresses .1, .2, .3 and .4, respectively. This minimal network address format is used for illustration only; actual network layer protocols such as IP use a more complicated format.

The process of automatic discovery begins with step 401 in the flowchart of FIG. 4, where a node 101 initializes its list of known nodes 206. (These initial values are provided by the network administrator, through add/delete mechanism 210.) FIG. 3A shows a snapshot of each node's list of known nodes 206 after the initialization step 401 has been performed by each of the nodes 101 a-d. The list of known nodes 206a for node 101 a contains four entries, one for itself and one for each of the three remaining nodes. Each entry has type field 207 set to Static, meaning that the entries were not discovered by announcements received or forwarding by other nodes. Each entry has forward count field 209 set to nonzero, meaning that the entries will be forwarded to other nodes. The list of known nodes 206 b-d for nodes 101 b-d is empty.

FIG. 3A also shows any paths which exist between nodes 101 a-d at this initial time, as implied by the contents of the lists 206 a-d. The entries in the list of known nodes 206 a imply that a unidirectional path exists from node 101 a to each of the other nodes 10lb-d, as shown by dotted lines 301, 302, 303. There are no paths shown leading out of nodes 10lb-d because the corresponding list for each of those nodes, 206 b-d, is empty.

The process of automatic discovery continues with step 402 in the flowchart of FIG. 4, where the current node in list 206 is examined. At step 403, if the type is Discovered then the next node is processed by continuing at step 407. If the type is Static, however, the current node is processed by continuing to step 404.

At step 404, the forward count field 209 of the current node is compared to zero, and if the forward count field 209 is equal to zero, then the next node is processed by continuing at step 407. If the forward count field 209 is non-zero, the forward count field 209 is decremented at step 405. Next, at step 406, the network address field 208 and the (decremented) forward count field 209 of this current node is transmitted to all those nodes 101 a-d in list 206 which have type Static. This transmission of a network address and a forward count from one node to another, based on a Static type node, is called an “announcement.”

Step 407 advances to the next node in the list 206, then step 408 determines if the newly advanced current node entry has reached the end of the list of known nodes 206. If the end of the list has not been reached, then processing continues back at step 402, where the newly advanced current node entry is examined. If the end of the list has been reached, step 409 informs each node to which an announcement was sent that announcements are finished. One skilled in the art should realize that the details of this step may be varied, depending on the implementation. For example, instead of waiting for all announcements to all nodes to be finished before sending an “announcement finished” to all nodes, it may be desirable to send an “announcement finished” to node X on completion of all announcements to node X, without waiting until all announcements to other nodes are complete.

Processing of announcing continues at step 410, which waits for addition or deletion of a Static node by the network administrator. When a Static node is added or deleted, processing of the list begins again at step 402.

FIG. 5 is a flow chart showing how announcements made by one node 101 are received and processed by another node 101. Step 501 waits for an announcement to be received. Step 502 determines whether the packet is an announcement or an announcement-finished. If the packet type is announcement, processing continues at step 503, where a new entry for list of known nodes 206 is created. The new entry's network address field 208 and forward count field 209 are initialized at step 504 from the values in the announcement packet, and the new entry's type field 207 is set to Discovered. At step 505 the newly created node is added to list of known nodes 206.

One skilled in the art should realize that no new information is imparted when an announcement is received by a node and the announcement contains the node's own network address. Therefore, the announcement can be ignored, or the announcer could avoid sending this packet by comparing the destination network address of the packet to the network address field 208.

If step 502 determined that the received packet was an announcement-finished, then processing continues at step 506, where new node(s) are transmitted to all nodes 101 a-d in list 206. Processing then continues again at step 501 where another announcement is waited on.

This transmission of a network address and a forward count from one node to another, based on a Discovered node, is called a “forward.” Forwarding differs from announcing in several ways. Announcing notifies other nodes about Static nodes but not about Discovered nodes, while forwarding notifies other nodes about both Static and Discovered nodes. Forwarding happens in response to receiving an announcement packet. Announcing happens at initialization, and in response to a new Static node being added/deleted by the add/delete mechanism 210.

FIG. 3B follows FIG 3A in time. FIG. 3B shows the result of the first iteration of steps 402-407 and the first iteration of steps 501-506 for the example network.

Making announcements to specific nodes using unicast destination network addresses is preferable to making an announcement to all nodes using the broadcast destination network address, because all nodes on the network, even those not interested in participating in Discovered discovery, receive broadcast packets. The broadcasting technique is used by other protocols (such as routing protocols), so that network nodes already have to process broadcast traffic. The system and method of the present invention does not require each node to process increased broadcast traffic. Using unicast destination network addresses is also preferable to using a multicast address. Multicast packets are not received by all nodes, only those listening to the particular multicast address, but multicast is not widely supported by network layer protocols. The use of unicast addresses is especially desirable for carrying network management traffic which is in-band.

As shown in FIG. 3B, the lists 206 b-d for the other nodes are updated with the announced address of .1, so that the lists 206 b-d which were empty in FIG. 3A now contain one entry each. This single entry has a network address field 208 of .1, a forward count field 209 of zero (decremented from its original value in list 206 a), and a type field 207 of Discovered, since the network address was discovered by announcement. The forwarders 213 in nodes 101 b-d do not forward the announcement packets after receipt by listener logic 212 in the same node, since the forward count field 209 of the received packets are zero.

As a result of the updated lists 206 b-d, by which nodes 10lb-d learned the network address of node 101 a, a path now exists from each of nodes 101 b-d to 101 a. FIG. 3B thus shows paths 301, 302, 303 as bidirectional, where in FIG. 3A these same paths were unidirectional.

The above description, using one network address per announcement, results in 16 announcement packets for the example network configuration. One skilled in the art should recognize that an announcement packet destined for a particular node can contain as data the network address of more than one node. In other embodiments, a single announcement packet containing the network address and forward count of each node in the list of known nodes 206 could be transmitted to each of the four nodes in the list. In the example network configuration, this results in four announcement packets rather than 16. One skilled in the art should recognize that many packet sizes and thus many numbers of network addresses in each packet are possible.

FIG. 3C follows FIG. 3B in time, and shows the result of all iterations of steps 402-407 and all iterations of steps 501-506 for the example network configuration.

Lists 206 b-d differ from list 206 a. The entries in list 206 a are of type Static, while the entries in lists 206 b-d are of type Discovered. Also, the entries in lists 206 b-d have Forward Counts of zero, since the original Forward Count of 1 in list 206 a was decremented before transmitting to the other nodes in the announcement. However, the Forward Count in the sender's list 206 is not decremented.

This arrangement is called a “full mesh.” FIG. 3C thus shows the same three bidirectional paths 301, 302, 303 from FIG. 3B, plus three additional bidirectional paths 304, 305, and 306.

The workings of one embodiment of a system and method for automatic discovery of network addresses are further explained by FIGS. 6A-D, which are a sequence of diagrams showing the announcements and forwarding for a different network configuration 100 b. As with FIGS. 3A-C, FIGS. 6A-D show how the list of known nodes 206 in each node 101 a-d is updated by announcements and forwarding.

Network configuration 100 a contained one list, 206 a, which contained the node addresses of all other nodes.

The list of known nodes 206 a for node 101 a contains two entries, one for node 101 b and one for node 101 c.

The list of known nodes 206 b for node 101 b contains two entries, one for node 101 d and one for node 101 e. Both entries have the forward count field 209 set to 1 and the type field 207 set to Static. This set of entries for list 206 b implies the existence of unidirectional paths 603 and 604.

The list of known nodes 206 c for node 101 c contains two entries, one for node 101 f and one for node 101 g. Both entries have the forward count field 209 set to 1 and the type field 207 set to Static. This set of entries for list 206 c implies the existence of unidirectional paths 605 and 606.

FIG. 6B shows a snapshot of each node's list of known nodes 206 after node 101 a has announced the Static nodes in its list 206 a. There are two Static nodes in list 206 a, and both have a non-zero Forwarding Count. Therefore, node 101 a announces address .2 to both Static nodes in its list 206 a (.2 and .3), and also announces address .3 to both Static nodes.

The list 206 b in node 101 b remains unchanged by the announcement of node .2, since the announcement contained only the node's own address. However, the list 206 c in node 101 c has been updated with a new Discovered node with the network address field 208 set to .2, and with forward count field 209 set to zero. Because forward count field 209 is zero (node 101 a decremented the count before transmitting the announcement), node 101 c does not forward the new node address (.2) on to other nodes.

The list 206 c in node 101 c remains unchanged by the announcement of node .3, since the announcement contained only the node's own address. However, the list 206 b in node 101 b has been updated with a new Discovered node with the network address field 208 set to .3, and with forward count field 209 set to zero. Because forward count field 209 is zero (node 101 a decremented the count before transmitting the announcement), node 101 b does not forward the new node address (.3) on to other nodes. The two new Discovered nodes in list 206 b and list 206 c implies the existence of two unidirectional paths, which is equivalent to bidirectional path 607 as shown.

FIG. 6C shows a snapshot of each node's list of known nodes 206 after node 101 b has announced the Static nodes in its list 206 b. There are two Static nodes in list 206 b, and both have a non-zero Forwarding Count. Therefore, node 101 b announces address .4 to both Static nodes in its list 206 b (.4 and .5), and also announces address .5to both Static nodes.

Because forward count field 209 is zero (node 101 b decremented the count before transmitting the announcement), node 101 e does not forward the new node address (.5) on to other nodes.

Because forward count field 209 is zero (node 101 b decremented the count before transmitting the announcement), node 101 d does not forward the new node address (.5) on to other nodes.

FIG. 6D shows a snapshot of each node's list of known nodes 206 after node 101 c has announced the Static nodes in its list 206 c. There are two Static nodes in list 206 c, and both have a non-zero Forwarding Count. Therefore, node 101 c announces address .6 to both Static nodes in its list 206 c (.6 and .7), and also announces address .7 to both Static nodes.

The list 206 f in node 101 f remains unchanged by the announcement of node .6, since the announcement contained only the node's own address. However, the list 206 g in node 101 g has been updated with a new Discovered node with the network address field 208 set to .6, and with forward count field 209 set to zero. Because forward count field 209 is zero (node 101 c decremented the count before transmitting the announcement), node 101 g does not forward the new node address (.6) on to other nodes.

Because forward count field 209 is zero (node 101 c decremented the count before transmitting the announcement), node 101 f does not forward the new node address (.7) on to other nodes.

The paths resulting from the sequence described by FIGS. 6A-D are called “dual tier.” FIG. 6D thus shows additional bidirectional paths 607, 608, and 609.

The workings of an embodiment of a system and method for automatic discovery of network addresses are further explained by FIGS. 7A-D, which are a sequence of diagrams showing the announcements and forwarding for a different network configuration 100 c. As before, FIGS. 7A-D show how the list of known nodes 206 in each node 101 a-g is updated by announcements and forwarding.

The network configuration 100 c (FIGS. 7A-D) is similar to network configuration 100 b (6A-D), with seven nodes in three levels. But there are noticeable differences in the lists 206: the lists 206 in network configuration 100 c contain some Static nodes with Forward Counts set to 2. This difference results in a different set of paths being created during the automatic discovery process, as will be shown in FIG. 7D.

The list of known nodes 206 a for node 101 a contains two entries, one for node 101 b and one for node 101 c.

The list of known nodes 206 b for node 101 b contains two entries, one for node 101 d and one for node 101 e. Both entries have the type field 207 set to Static. One entry has the forward count field 209 set to 2 and the other has the forward count field 209 set to 1. This set of entries for list 206 b implies the existence of unidirectional paths 603 and 604.

The list of known nodes 206 c for node 101 c contains two entries, one for node 101 f and one for node 101 g. Both entries have the type field 207 set to Static. One entry has the forward count field 209 set to 2 and the other has the forward count field 209 set to 1. This set of entries for list 206 c implies the existence of unidirectional paths 605 and 606.

FIG. 7B shows a snapshot of each node's list of known nodes 206 after node 101 a has announced the Static nodes in its list 206 a. There are two Static nodes in list 206 a, and both have a non-zero Forwarding Count. Therefore, node 101 a announces address .2 to both Static nodes in its list 206 a (.2 and .3), and also announces address .3 to both Static nodes.

The list 206 b in node 101 b remains unchanged by the announcement of node .2, since the announcement contained only the node's own address. However, the list 206 c in node 101 c has been updated with a new Discovered node with the network address field 208 set to .2, and with forward count field 209 set to 1. (Forwarding of this new non-zero Forward Count node will be described later, with reference to FIG. 7D.)

The list 206 c in node 101 c remains unchanged by the announcement of node .3, since the announcement contained only the node's own address. However, the list 206 b in node 101 b has been updated with a new Discovered node with the network address field 208 set to .3, and with forward count field 209 set to 1. The two new Discovered nodes in list 206 b and list 206 c implies the existence of two unidirectional paths, which is equivalent to bidirectional path 607 as shown.

FIG. 7C shows a snapshot of each node's list of known nodes 206 after node 101 b and node 101 c have both announced the Static nodes in their lists 206 b. There are two Static nodes in each of the lists 206 b and 206 c, and both have a non-zero Forwarding Count. Therefore, node 101 b announces address .4 to both Static nodes in its list 206 b (.4 and .5), and also announces address .5 to both Static nodes. Similarly, node 101 c announces address .6 to both Static nodes in its list 206 c (.6 and .7), and also announces address .7 to both Static nodes.

The result of the announcement of addresses .4 and .5 by node 101 b is as follows.

The list 206 e in node 101 e is updated with a new Discovered node with the network address field 208 set to .4, and with forward count field 209 set to zero. The list 206 d in node 101 d is updated with a new Discovered node with the network address field 208 set to .5, and with forward count field 209 set to zero. Because the forward count fields on these new nodes are zero (decremented from 1 before transmitting the announcement), node 101 d and node 101 e do not forward the new node addresses (.4 and .5) on to other nodes. The two new Discovered nodes in list 206 d and list 206 e implies the existence of two unidirectional paths, which is equivalent to bidirectional path 608 as shown.

Similarly, the result of the announcement of addresses .6 and .7 by node 101 c is as follows. The list 206 g in node 101 g is updated with a new Discovered node with the network address field 208 set to .6, and with forward count field 209 set to zero. The list 206 f in node 101 f is updated with a new Discovered node with the network address field 208 set to .7, and with forward count field 209 set to zero. Because the forward count fields on these new nodes are zero (decremented from 1 before transmitting the announcement), node 101 f and node 101 g do not forward the new node addresses (.6 and .7) on to other nodes. The two new Discovered nodes in list 206 f and list 206 g implies the existence of two unidirectional paths, which is equivalent to bidirectional path 609 as shown.

FIG. 7D shows a snapshot of each node's list of known nodes 206 after node 101 b and node 101 c have forwarded the Discovered nodes in their lists 206 b and 206 c. Node 101 b announces address .3 to all other nodes in its list 206 b, which is nodes .4 and .5. Node 101 c announces address .2 to all other nodes in its list 206 c, which is nodes .6 and .7.

The result of the forwarding of address .3 by node 101 b is as follows. The list 206 d in node 101 d is updated with a new Discovered node with the network address field 208 set to .3, and with forward count field 209 set to zero. The new Discovered node in list 206 d implies the existence of a unidirectional path 710 from node 101 d to node 101 c. The list 206 e in node 101 e is updated with a new Discovered node with the network address field 208 set to .3, and with forward count field 209 set to zero. The new Discovered node in list 206 e implies the existence of a unidirectional path 711 from node 101 e to node 101 c.

The list 206 f in node 101 d is updated with a new Discovered node with the network address field 208 set to .3, and with forward count field 209 set to zero.

Some Discovered nodes in FIG. 7D have a forward count field 209 of 1.

The set of paths created by network configuration 100 c, as shown in FIG. 7D, is different than the set of paths created by network configuration 100 b, as shown in FIG. 6D. In FIG. 7D, each node in the lowest level is connected to both nodes in the second level, by paths 603, 604, 710, 711 and 605, 606, 712, 713. In contrast, in FIG. 6D, each node in the lowest level is connected to only one node in the second level, by paths 603, 604 and 605, 606. There is no equivalent to paths 710, 711, 712 and 713 in FIG. 6D.

FIG. 8 shows the structure of an announcement packet used in an embodiment of a system and method for automatic discovery of network nodes. The announcement packet 801 comprises a number of fields: special identifier 802; number of messages 803; length 804; repeat count 805; message type 806; and message data 807.

The announcement packet 801 is encapsulated in an ICMP packet 808. That is, the announcement packet 801 is contained within the data field of the ICMP packet 808. An ICMP packet 808 comprises a number of fields: type 809; code 810; checksum 811 and data 812.

The ICMP packet 808 is itself encapsulated in an IP packet 813. That is, the ICMP packet 808 is contained within the data field of the IP packet 813. IP packet 813 will not be completely described here. Instead, only those fields in IP packet 813 which the system and method of the present invention affect will be described. Those fields are: protocol 814; source network address 815; destination network address 816; and data 817.

The announcement packet 801 is used as follows. One or more node addresses to be announced are put in the message data field 807. Repeat count 805 is set to the number of node addresses contained in this announcement. Special identifier 802 is set to a predetermined value such as “FEED” which distinguishes this from a standard Ping packet. Message Type 806 is set to a predetermined value which identifies the packet as an announcement. The length field 804 is set to the total length of the packet, which depends on the number of node addresses contained within.

The ICMP type field 809 is set to 8 and the ICMP code field 810 is set to 0, which identifies the ICMP packet 808 as an Echo Request.

The header of the IP packet 813 is filled in as follows. The protocol field 814 is set to 1, which identifies the IP packet as encapsulating an ICMP packet 808. The source network address 815 is set to the network address 103 which is making the announcement. The destination network address 816 is set to the network address 103 of a particular node which is the target of the announcement. As explained before, this network address is a unicast address, so that the announcement packet 801 is delivered (by the IP protocol layer) only to that particular node.

The announcement-finished packet (not shown) is similar, but message type 806 is set to a predetermined value which identifies the packet as an announcement-finished, and message data 807 is not used. The header of the ICMP packet 808, and the header of the IP packet 813, are filled in the same manner as for the announcement packet 801.

One skilled in the art should recognize that this is only one example of packet structures which could be used for announcements and announcement-finished, and that many other packet structures are possible.

FIG. 9A-B illustrates another embodiment of the system and method for automatic discovery of network addresses. This embodiment detects when a node 101 becomes unreachable, and responds as follows. FIG. 9A shows network configuration 100 d before the detection of an unreachable node, and FIG. 9B shows the configuration after detection.

In FIG. 9A, node 101 b detects that node 101 a is unreachable. In response to detection of unreachable node 101 a, node 101 b looks for entries in its list of known nodes 206 b with a discovery source field 210 which matches the unreachable node 101 a. (In nodes of Discovered type, the discovery source field 210 is set to the network address 103 of the node which sent the announcement.) Here the matching nodes have addresses .3 and .4.

Node 101 d has deleted address .3 but the deletion announcement for its own address .4 has no effect.

In one embodiment, an unreachable node 101 is detected by receiving a deletion event from add/delete mechanism 210. In another embodiment, an unreachable node 101 is detected through a polling mechanism which periodically sends a poll packet to each node 101 in list 206 and receives a response in return. If a particular node 101 stops responding to polls, then the node is considered unreachable by the poll sender. One skilled in the art will recognize that the polling mechanism can be implemented in various ways. For example, a responder can be considered unreachable after a single response is missed, or after more than one response is missed. In some embodiments an aging technique is used, such that when a first poll response is missed, the poller records the event and/or the time the response was missed. If the poller sends out subsequent polls that are also missed, the poller ages the matching nodes again to update the event and/or time the response is missed. When a predetermined number of polls are missed, the poller determines that the node with missing responses is unreachable, and proceeds as described above.

The foregoing description has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the invention to the precise forms disclosed. Obvious modifications or variations are possible in light of the above teachings. The embodiments discussed, however, were chosen and described to illustrate the principles of the invention and its practical application to thereby enable one of ordinary skill in the art to utilize the invention in various embodiments and with various modifications as are suited to the particular use contemplated. All such modifications and variation are within the scope of the invention as determined by the appended claims when interpreted in accordance with the breadth to which they are fairly and legally entitled. 

1. A system for automatically discovering nodes on a network comprising: announcer logic configured to transmit a first announcement packet to all known nodes having a static type in a list of known nodes, the first announcement packet comprising a node address and a forward counter associated with each known node in the list having a corresponding forward count greater than zero, the forward counter initialized from the corresponding forward count; listener logic configured to receive a second announcement packet comprising a node address and a forward counter, the listener logic further configured to add to the list of known nodes a received node having a discovered type, the received node associated with the node address and a corresponding forward count defined by the decremented forward counter; and forwarder logic configured to transmit a third announcement packet to all known nodes in the list of known nodes when the forward count associated with the received node is greater than zero, the third announcement packet comprising the node address associated with the received node and a forward counter initialized from the forward count corresponding to the received node.
 2. The system of claim 1, wherein the announcer logic is further configured to transmit the node address and the forward counter using a unicast address.
 3. The system of claim 1, wherein the forward counter of the second announcement packet is decremented upon receipt.
 4. The system of claim 1, wherein the forward counter of the second announcement packet is the decremented before transmission.
 5. The system of claim 1, further comprising a network interface configured to transmit and receive data on the network.
 6. The system of claim 5, wherein the announcer logic is further configured to transmit the first announcement packet via the network interface.
 7. The system of claim 1, wherein the node address is an IP address.
 8. The system of claim 1, wherein the announcement packet is an ICMP packet with type Echo Request.
 9. A method for automatically discovering nodes on a network comprising: initializing a first known node list; transmitting a first announcement packet to all known nodes in the first list, the first announcement packet comprising a node address and a forward counter associated with each known node having a corresponding forward count greater than zero, the forward counter initialized from the corresponding forward count; receiving from the network a second announcement packet, the second announcement packet comprising a node address and a forward counter associated with a discovered node; adding to a second list of discovered nodes the discovered node, where the discovered node is associated with a forward count defined by the decremented forward counter; and transmitting a third announcement packet to all known nodes in the first list and all discovered nodes in the second list when the forward count associated with the discovered node is greater than zero, the third announcement packet comprising the node address associated with the discovered node and a forward counter initialized from the forward count associated with the discovered node.
 10. The method of claim 9, wherein transmitting onto the network to all known nodes further comprises transmitting the network node address and the forward counter using a unicast address.
 11. The method of claim 9, wherein transmitting onto the network to all known nodes and all discovered nodes further comprises transmitting the node address and the forward counter using a unicast address.
 12. The method of claim 9, wherein transmitting an announcement packet to all known nodes further comprises decrementing the forward counter before transmission.
 13. The method of claim 9, further comprising: detecting an unreachable node; deleting from the second list, responsive to detecting the unreachable node, each node with a discovery source matching the unreachable node; and announcing, to each node in the first and second lists, the deletion of each deleted node.
 14. The method of claim 9, further comprising: receiving a deletion announcement, wherein the deletion announcement comprises at least one node to be deleted; and deleting from the second list, responsive to receiving the deletion announcement, each node corresponding to the node to be deleted.
 15. The method of claim 14, further comprising forwarding, to each node in the first and second lists, the at least one node to be deleted.
 16. A system for automatically discovering nodes on a network comprising: a list of static nodes, wherein each static node comprises a node address and a corresponding forward count; announcer logic configured to transmit to all static nodes the node address of each static node in the list having a corresponding forward count greater than zero and a corresponding forward counter initialized from the corresponding forward count; a list of discovered nodes, wherein each discovered node comprises a node address and a corresponding forward count; listener logic configured to receive an announcement packet comprising at least one node address and at least one corresponding forward counter, the listener logic further configured to add to the list of discovered nodes at least one discovered node comprising the at least one node address and a corresponding forward count defined by the decremented at least one corresponding forward counter of the announcement packet; and forwarder logic configured to transmit to all static nodes and to all discovered nodes, via the network interface, the node address of the at least one discovered node and a corresponding forward counter initialized from the corresponding forward count when the corresponding forward count is greater than zero.
 17. The system of claim 16, wherein the announcer logic is further configured to transmit the node address and the corresponding forward counter using a unicast address.
 18. The system of claim 16, wherein the forwarder logic is further configured to transmit the node address and the corresponding forward counter using a unicast address.
 19. The system of claim 16, wherein the corresponding forward counter of the announcement packet is decremented upon receipt.
 20. The system of claim 16, wherein the corresponding forward counter of the announcement packet is decremented before transmission.
 21. The system of claim 16, further comprising a network interface configured to transmit and receive data on the network.
 22. The system of claim 21, wherein the announcer logic is further configured to transmit the node address and the corresponding forward counter via the network interface.
 23. The system of claim 21, wherein the forwarder logic is further configured to transmit the node address and the corresponding forward counter via the network interface.
 24. The system of claim 21, wherein the listener logic is further configured to receive the announcement packet via the network interface.
 25. The system of claim 16, wherein the node address is an IP address.
 26. The system of claim 16, wherein the announcement packet is an ICMP packet with type Echo Request.
 27. A system for automatically discovering nodes on a network comprising: means for initializing a first known node list; means for transmitting a first announcement packet to all known nodes in the first list, the first announcement packet comprising a node address and a forward counter associated with each known node having a corresponding forward count greater than zero, the forward counter initialized from the corresponding forward count; means for receiving from the network a second announcement packet, the second announcement packet comprising a node address and a forward counter associated with a discovered node; means for adding to a second list of discovered nodes the discovered node, where the discovered node is associated with a forward count defined by the decremented forward counter; and means for transmitting a third announcement packet to all known nodes in the first list and all discovered nodes in the second list when the forward count associated with the discovered node is greater than zero, the third announcement packet comprising the node address associated with the discovered node and a forward counter initialized from the forward count associated with the discovered node.
 28. The system of claim 27, wherein means for transmitting further comprises means for decrenting the forward counter before transmission.
 29. The system of claim 27, wherein means for receiving further comprises means for decrenting the forward counter upon receipt.
 30. The system of claim 27, further comprising: means for detecting an unreachable node; means for deleting from the second list, responsive to detecting the unreachable node, each node with a discovery source matching the unreachable node; and means for announcing, to each node in the first and second lists, the deletion of each deleted node.
 31. The system of claim 27, further comprising: means for receiving a deletion announcement, wherein the deletion announcement comprises at least one node to be deleted; and means for deleting from the second list, responsive to receiving the deletion announcement, each node corresponding to the node to be deleted.
 32. The system of claim 31, further comprising means for forwarding, to each node in the first and second lists, the at least one node to be deleted.
 33. The system of claim 27, further comprising means for interfacing with a network to transmit and receive data. 